import axios from 'axios';
import urls from './urls';

let http = axios.create();

export default {
    upload(params, config, data) {
        // return出去了一个promise
        let options = config;

        if (params) {
            options.params = params;
        }
        return http.post(urls.upload, data, options);
    },
    // delete(data) {
    //     return api.post(urls.add, data, null, null)
    // },
};